package org.suyafei.service;

import org.springframework.stereotype.Service;
import org.suyafei.enums.SendCodeEnum;
import org.suyafei.utils.JsonData;

/**
 * @author 宿某人
 * @Date: 2021/12/09/11:13 上午
 * @Description:
 */
public interface NotifyService {
    /**
     * 发送验证码
     * @param sendCodeEnum
     * @param to
     * @return
     */
    JsonData sendCode(SendCodeEnum sendCodeEnum, String to);

    /**
     * 校验手机验证码
     * @param sendCodeEnum
     * @param to
     * @param code
     * @return
     */
    boolean checkCode(SendCodeEnum sendCodeEnum, String to, String code);
}
